<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>酒店信息详情</title>
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/hotel/hoteldetail.css'/>" media="all" />
<script type="text/javascript" src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>"></script> 
<script type="text/javascript" src="<s:url value='/resources/js/common/time.js'/>"></script> 
<script type="text/javascript">
var contextpath="<%=request.getContextPath()%>";
$(function(){
	$('.time').text((new Date()).pattern("yyyy-MM-dd EEE HH:mm:ss"));
	$('.time').createTime({format:'yyyy-MM-dd EEE HH:mm:ss'});
});
</script>
<style type="text/css">
.markResult{
	padding:50px 50px;
	border-style:groove;
	border-width:1pt; 
	border-color: green;
	width:400px;
	margin:200px 134px;
	font-size:24px;
	color:green;
}
</style>
</head>
<body style="width: 1024px;height: 768px;">
	<div id="top">
		<div class="home"></div>
		<div class="sysname">现代旅游酒店系统</div>
		<div class="user"></div>
		<div class="userText">操作员:
		<s:iterator value="#request.tourismPlan">
			<s:property value="guideName"/>
		</s:iterator>
		</div>
		<div class="time">2013/5/26  星期一  17:52:00</div>
		<div class="clr"></div>
	</div>
	<div class="context">
		<div class="left">
		<div class="nav">
			<div class="nav">
				<ul>
					<li class="nav_tit "><a href="<s:url value='/hotel/guideHotelMark.action'/>?hotelId=<s:property value='#request.place.id'/>"><div><img src="<s:url value="/resources/images/hotel/mark2.png" />" /><span class="li_tit">导游签到</span></div></a></li>
					<li class="nav_tit select">
					
					<div><img src="<s:url value="/resources/images/hotel/selecticons.png" />" /><span>查询</span></div></li>
				</ul>
			</div>
			</div>
			<div class="intoHome">
				<a href=<s:url value='/hotel/loadHotelIndex'/>?hotelId=<s:property value="#request.place.id"/>><img src="<s:url value='/resources/images/aio/rhome.png'/>"/></a>
				
			</div>
		</div>
		<div class="right">
			<div class="riframe">
			<s:if test='#request.result=="1"'>
					<div class="listTitle"><img src="<s:url value='/resources/images/hotel/hotelTitle.png'/>"/></div>
					<div id="tourPlan">
						<s:iterator value="#request.tourismPlan">
							<div class="listPlanTitle">旅行社名称：<s:property value="tourName"/></div>
							<div class="listPlanTitle">旅行团名:<s:property value="tourNo"/></div>
							<div class="listPlanTitle">旅行团类型:<s:property value="termType"/></div>
							<div class="listPlanTitle">人数:<s:property value="#request.total"/></div>
							<div class="listPlanTitle">导游：<s:property value="guideName"/>(<s:property value="guidePhone"/>)</div>
						</s:iterator>
					</div>
					<div class="clr"></div>
					<div><img height="39" src="<s:url value='/resources/images/hotel/roomTitle.png'/>"/></div>
					<div id="hotelinfo">
						<table border= "0" cellspacing=0 cellpadding=0 style="margin-left:36px;" width="710">
								<tr class="titleTr">
									<td style="width:130px">酒店名称</td>
									<td style="width:78px">房间类型</td>
									<td style="width:46px">单价</td>
									<td style="width:42px">数量</td>
									<td style="width:85px">入住时间</td>
									<td style="width:50px">天数</td>
									<td style="width:40px">
										是否自费
									</td>
									<td style="width:110px">订房时间</td>
									<td style="width:110px">备注</td>
								</tr>
							<s:iterator value="#request.hotelList" var="h">
								<tr><td style="width:130px"><s:property value="hotelName"/></td>
									<td style="width:78px"><s:property value="roomType"/></td>
									<td style="width:46px"><s:property value="price"/></td>
									<td style="width:42px"><s:property value="total"/></td>
									<td style="width:85px"><s:date name="time" format="yyyy-MM-dd"/></td>
									<td style="width:50px"><s:property value="days"/></td>
									<td style="width:40px">
										<s:if test="#h.self==1">
											是
										</s:if>
										<s:if test="#h.self==0">
										否
										</s:if>
									</td>
									<td style="width:110px"><s:date name="bookTime" format="yyyy-MM-dd"/></td>
									<td style="width:110px"><s:property value="note"/></td>
								</tr>
								</s:iterator>
							</table>
					</div>
					<div class="clr"></div>
					<div><img height="39" src="<s:url value='/resources/images/hotel/touristTitle.png'/>"/></div>
					<div id="touristinfo">
						<div>
							<table border= "0" cellspacing=0 cellpadding=0 style="margin-left:36px;" width="710px;">
							   <tr class="titleTr">
							   		<td style="width:64px">姓名</td>
									<td style="width:38px">性别</td>
									<td style="width:70px">证件类型</td>
									<td style="width:114px">证件号码</td>
									<td style="width:85px">出生日期</td>
									<td style="width:91px">地址</td>
									<td style="width:78px">手机号码</td>
									<td style="width:105px">邮箱</td>
									<td style="width:59px">类型</td>
								</tr>
							<s:iterator value="#request.touristList">
								<tr><td style="width:64px"><s:property value="name"/></td>
									<td style="width:38px"><s:property value="sex"/></td>
									<td style="width:70px"><s:property value="cerType"/></td>
									<td style="width:114px"><s:property value="cardNo"/></td>
									<td style="width:85px"><s:date name="birthday" format="yyyy-MM-dd"/></td>
									<td style="width:91px"><s:property value="address"/></td>
									<td style="width:78px"><s:property value="phone"/></td>
									<td style="width:105px"><s:property value="email"/></td>
									<td style="width:59px"><s:property value="type"/></td>
								</tr>
								</s:iterator>
							</table>
						</div>
					</div>
					</s:if>
					<s:if test='#request.result=="0"'>
						<div class="markResult">
						<span style="vertical-align:middle;"><img src="<s:url value="/resources/images/hotel/markfailure.png" />"/></span>
						当天您没有预定该酒店记录！
					</div>
					</s:if>
				<div>
					<br>
					<br>
				</div>
			</div>
			
		</div>
		<div class="clr"></div>
	</div>
	<div class="bottomCotent"><span style=" padding-right: 20px;">客户机:<s:property value="#request.place.id"/>　使用单位：<s:property value="#request.place.name"/></span></div>
</body>
</html>